home *** CD-ROM | disk | FTP | other *** search
- Path: hilbert.dnai.com!usenet
- From: Victor Bazarov <vbazarov@imsisoft.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Money for solution to printing problem
- Date: Mon, 05 Feb 1996 12:16:09 -0800
- Organization: IMSI
- Message-ID: <31166589.C70@imsisoft.com>
- References: <4f1lc7$a2f@newsbf02.news.aol.com>
- NNTP-Posting-Host: 204.182.61.84
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6a (Win95; I)
-
- Recursion wrote:
- >
- > Not really but since you are already here why not tell me how to send
- > output to the printer.
- > in PASCAL I used writeln(LST,"HELLO")
- > is there a function in C++ that will do this all I have seen is the cout
- > and the printf functions or classes or whatever they are. Any help is
- > greatly appreciated.
-
- It is quite system-dependent. In general case it's not a bad solution
- to write to cout, and redirect output to the printer when running the program.
- In MS-DOS, for example, it'd be
-
- myprog >prn
-
- where 'prn' is a reserved file name for printer.
-
- Victor.
-